<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_course_student_credit".
 *
 * @property string $id
 * @property string $course_id 课程id
 * @property string $user_id 用户id
 * @property string $create_by 证书发放人
 * @property string $create_time 证书发放时间
 * @property string $update_by 修改人
 * @property string $update_time 修改时间
 * @property int $del_flag 删除标识
 */
class TCourseStudentCredit extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_course_student_credit';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'create_time'], 'required'],
            [['create_time', 'update_time'], 'safe'],
            [['del_flag'], 'integer'],
            [['id', 'course_id', 'user_id', 'create_by', 'update_by'], 'string', 'max' => 36],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'course_id' => 'Course ID',
            'user_id' => 'User ID',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'del_flag' => 'Del Flag',
        ];
    }
}
